<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>凯盛项目管理系统</title>
	<link rel="stylesheet" href="css/bootstrap.min.css" />

  </head>
  
  <body>
    <%@ include file ="top.jsp" %>
    <div class="container" style="margin-top:60px">
		<div class="row">
			<div class="span3">
				<div class="well" style="padding:10px 0;margin-top:20px;">
					<ul class="nav nav-list">
					  <li class="nav-header">${pu.project.name}</li>
					  <li >${sessionScope.user.username}:${pu.role}</li>
					  <li class="divider"></li>
					  <li class="active"><a href="project.jspx?id=${sessionScope.pu.projectid }"><i class="icon-white icon-home"></i>最新动态</a></li>
					  <li><a href="goal.jspx"><i class="icon-flag"></i>目标</a></li>
					  <li><a href="document.jspx"><i class="icon-folder-open"></i>资料库</a></li>
					  <li><a href="file.jspx"><i class="icon-file"></i>文件共享</a></li>
					  <li><a href="contact.jspx"><i class="icon-user"></i>联系人</a></li>
					  <li><a href="idea.jspx"><i class="icon-fire"></i>想法</a></li>
					  <li><a href="#"><i class="icon-warning-sign"></i>Bug</a></li>
					  <li><a href="main.jspx?m=editProject&id=${pu.projectid }"><i class="icon-cog"></i>项目设置</a></li>
					</ul>
				</div>
			</div>
			<div class="span6">
				<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:20px;">
					<li><i class="icon-th"></i>你在想什么？</li>
				</ul>
				<div class="well" style="border-radius:0px;border-top:none;">
					<form  method="post" style="margin:0px;" action="project.jspx?m=newmsg&id=${sessionScope.pu.projectid}" >
						<textarea name="cont" id="" rows="3" style="width:415px"></textarea>
						<button type="submit" class="btn btn-primary">发布</button>
					</form>
				
				</div>
				<ul class="breadcrumb" style="margin-bottom:0px;border-radius: 3px 3px 0 0;margin-top:10px;">
					<li><i class="icon-th"></i>信息流</li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
					<li><a href=""><i class="icon-heart"></i>@Me</a></li>
				</ul>
				<div class="well" style="border-radius:0px;border-top:none; border-bottom:none;  ">			
					<c:forEach items="${requestScope.messagelist }" var="m">	
						<div class="msg" style="border-bottom:1px solid white ;height: 150px;  position: relative;">
							<div class="span1">

								

								<img  src="img.jspx?m=${m.user.pic}" height="40px;" width="40px;" />

							</div>
							<div  class="span4" style="border:1px solid white; max-height: 90px; padding:5px;">
								${m.cont }
							</div>
							<small style="position:absolute; bottom:0px;right: 0px;">${m.user.username}发布于${m.time }</small>
						</div>
					</c:forEach>	
						
						
						
				</div>						
			</div>
			<div class="span3">
				<div class="well" style="border-radius:0px;margin-top:20px;heigth:auto;">
					<div class="page-header" style="margin-top:5px;"><h3>我的任务</h3></div>
					<div style="font-size:16px">一、新任务</div>
					<ol>
						<c:forEach items="${nodolist }" var="t">
							<li style="font-size:16px"><a href="goal.jspx?m=task&id=${t.goalid}">${t.name}</a></li>
						</c:forEach>						
					</ol>
					<div style="font-size:16px">二、进行中的任务</div>
					<ol>
						<c:forEach items="${dolist }" var="d">
							<li style="font-size:16px"><a href="goal.jspx?m=task&id=${d.goalid}">${d.name}</a></li>
						</c:forEach>						
					</ol>
					<div style="font-size:16px">三、已完成的任务</div>
					<ol>
						<c:forEach items="${finishlist }" var="f">
							<li style="font-size:16px"><a href="goal.jspx?m=task&id=${f.goalid}">${f.name}</a></li>
						</c:forEach>						
					</ol>
				</div>				
			</div>															
			</div>
		</div>	
  </body>
</html>
